import Vue from 'vue'
Vue.config.productionTip = false
import Router from 'vue-router'
import Index from '../pages/Index/Index'
import Broadcast from '../pages/Broadcast/Broadcast'
import AudioBook from '../pages/AudioBook/AudioBook'
import Group from '../pages/Group/Group'
import Mine from '../pages/Mine/Mine'
import Home from '../components/home/Home.vue'
import Content from '../components/content/Content.vue'
import Message from '../components/message/Message.vue'
import Me from '../components/me/Me.vue'
import Home1 from '../components/home/Home1.vue'
import Home2 from '../components/home/Home2.vue'
import Home3 from '../components/home/Home3.vue'
import Home4 from '../components/home/Home4.vue'
import Home5 from '../components/home/Home5.vue'
import Home6 from '../components/home/Home6.vue'
import Message1 from '../components/message/Message1.vue'
import Message2 from '../components/message/Message2.vue'
import Message3 from '../components/message/Message3.vue'
import Message4 from '../components/message/Message4.vue'
import Message5 from '../components/message/Message5.vue'
import Message6 from '../components/message/Message6.vue'
import Reply from '../components/message/Reply.vue'
import Content1 from '../components/content/Content1.vue'
import Content2 from '../components/content/Content2.vue'
import Content3 from '../components/content/Content3.vue'
import Content4 from '../components/content/Content4.vue'
import Content5 from '../components/content/Content5.vue'
import Content6 from '../components/content/Content6.vue'
import Me1 from '../components/me/Me1.vue'
import Me2 from '../components/me/Me2.vue'
import Me3 from '../components/me/Me3.vue'
import Me4 from '../components/me/Me4.vue'
import Me5 from '../components/me/Me5.vue'
import Me6 from '../components/me/Me6.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
      children: [
        {
          path: '/Home1',
          name: 'Home1',
          component: Home1
        },
        {
          path: '/Home1',
          redirect: 'Home1'
        },
        {
          path: '/Home2',
          name: 'Home2',
          component: Home2
        },
        {
          path: '/Home3',
          name: 'Home3',
          component: Home3
        },
        {
          path: '/Home4',
          name: 'Home4',
          component: Home4
        },
        {
          path: '/Home5',
          name: 'Home5',
          component: Home5
        },
        {
          path: '/Home6',
          name: 'Home6',
          component: Home6
        }
      ]
    },
    {
      path: '/content',
      name: 'Content',
      component: Content,
      children: [
        {
          path: '/Content1',
          name: 'Content1',
          component: Content1
        },
        {
          path: '/Content2',
          name: 'Content2',
          component: Content2
        },
        {
          path: '/Content3',
          name: 'Content3',
          component: Content3
        },
        {
          path: '/Content4',
          name: 'Content4',
          component: Content4
        },
        {
          path: '/Content5',
          name: 'Content5',
          component: Content5
        },
        {
          path: '/Content6',
          name: 'Content6',
          component: Content6
        }
      ]
    },
    {
      path: '/message',
      name: 'Message',
      component: Message,
      children: [
        {
          path: '/Message1',
          name: 'Message1',
          component: Message1
        },
        {
          path: '/Message2',
          name: 'Message2',
          component: Message2
        },
        {
          path: '/Message3',
          name: 'Message3',
          component: Message3
        },
        {
          path: '/Message4',
          name: 'Message4',
          component: Message4
        },
        {
          path: '/Message5',
          name: 'Message5',
          component: Message5
        },
        {
          path: '/Message6',
          name: 'Message6',
          component: Message6
        }
      ]
    },
    {
      path: '/me',
      name: 'Me',
      component: Me,
      children: [
        {
          path: '/Me1',
          name: 'Me1',
          component: Me1
        },
        {
          path: '/Me2',
          name: 'Me2',
          component: Me2
        },
        {
          path: '/Me3',
          name: 'Me3',
          component: Me3
        },
        {
          path: '/Me4',
          name: 'Me4',
          component: Me4
        },
        {
          path: '/Me5',
          name: 'Me5',
          component: Me5
        },
        {
          path: '/Me6',
          name: 'Me6',
          component: Me6
        }
      ]
    },
    {
      path: '/mine',
      name: 'Mine',
      component: Mine
    },
    {
      path: '/home',
      redirect: '/',
    },
    {
      path: '*',
      redirect: '/'
    },
    {
      path: '/message/Reply/:id',
      name: 'Reply',
      component: Reply
    }
  ]
})
